<!--
 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores
 * CA 94065 USA or visit www.oracle.com if you need additional information or
 * have any questions.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Generic Preview Help</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  </head>
  <body>
      <h1>Running A UI/Theme on a Generic MIDP Device</h1>
    <p>
        CodenameOne supports generating a "preview MIDlet" on the fly to allow designers
        to preview their UI on an actual device.  This is an immensly powerful tool for a designer providing the
        designer with the "feel" of the theme on a specific device.
    </p>
    <p>
        While CodenameOne has support for running directly on a device for some specific devices (Nokia, RIM),
        there is still no standard for installing MIDP applications directly from the PC. This operation
        allows you to generate a jad/jar pair which can be installed manually on most common devices
        in the market by saving them to the SDCARD and clicking the jad or jar to install/run.
    </p>
    <p>
        A few devices will only work when running in OTA (Over The Air) mode, which effectively means
        you would need to host the jad/jar on an appropriate server and install them via a device
        browser.
    </p>
    <p>
        When a UI is executed on the device a combo box is presented allowing you
        to pick the UI form to start with. This is useful for a designer to preview
        starting from an arbitrary form in the middle of the application and not
        necessarily going through the full application flow which might not be
        applicable without application code.
    </p>
  </body>
</html>
